from django.contrib import admin
from .models import UserProfile, UserActivity

@admin.register(UserProfile)
class UserProfileAdmin(admin.ModelAdmin):
    list_display = ('user', 'is_creator', 'created_at')
    list_filter = ('is_creator', 'created_at')
    search_fields = ('user__username', 'bio')
    date_hierarchy = 'created_at'

@admin.register(UserActivity)
class UserActivityAdmin(admin.ModelAdmin):
    list_display = ('user', 'activity_type', 'created_at')
    list_filter = ('activity_type', 'created_at')
    search_fields = ('user__username', 'activity_type')
    date_hierarchy = 'created_at'
